﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Pacientes.aspx.cs" Inherits=" RzCorportativo.Views.Cadastros.Pacientes" %>

<%@ Register Src="~/Views/Pessoa.ascx" TagPrefix="appWeb" TagName="Pasciente" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        Paciente
    </h1>
<hr />
    <appWeb:Pasciente runat="server" ID="Paciente" />
    <asp:Button Text="salvar" runat="server" ID="salvar" OnClick="salvar_Click" CssClass="btn btn-success" />
    <br />
    <br />
    <ul class="nav nav-tabs" id="myTab">
        <li class="active"><a href="#home">Histórico de Consultas</a></li>
    </ul>
    <div class="tab-content">
        <div class="tab-pane active" id="home">
            <div style="min-width: 800px; margin-top: 30px" class="grid">
             <%--   <asp:GridView runat="server" AutoGenerateColumns="false" ID="ListaConsulta" AlternatingRowStyle-CssClass="gridrow_alternate"
                    RowStyle-CssClass="gridrow" CssClass="table-hover" PageSize="1" AllowPaging="true"
                    OnPageIndexChanging="ListaConsulta_PageIndexChanging">
                    <EmptyDataTemplate>
                        <strong>Não foram encontrados médicos para os filtros selecionados</strong>
                    </EmptyDataTemplate>
                    <Columns>
                        <asp:BoundField DataField="DateConsulta" HeaderText="Data" DataFormatString="{0: dd/MM/yyyy}" />
                        <asp:BoundField DataField="HoraEntrada" HeaderText="Entrada" DataFormatString="{0:T}" />
                        <asp:BoundField DataField="HoraSaida" HeaderText="Saída" DataFormatString="{0:T}" />
                        <asp:TemplateField HeaderText="Paciente">
                            <ItemTemplate>
                                <%# this.GetItem(Container.DataItem).Paciente.Nome%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Medico">
                            <ItemTemplate>
                                <%# this.GetItem(Container.DataItem).Medico.Pessoa.Nome%>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>--%>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(function () {
            $('#myTab home').tab('show');
            $('#myTab a').click(function (e) {
                e.preventDefault();
                $(this).tab('show');
            })
        })
    </script>
</asp:Content>
